package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
*
* @author quan
* @date 2021-11-23 21:49
*/
 

@Data
@TableName(value = "t_system_push_msg")
@Accessors(chain = true)
public class TSystemPushMsg {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 1系统 2其他
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "upd_by")
    private String updBy;

    /**
     * 消息接收者
     */
    @TableField(value = "receiver_id")
    private String receiverId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @TableField(value = "upd_time")
    private LocalDateTime updTime;
}